package com.mock.service.impl;

import com.mock.service.LogService;
import com.mock.service.UserService;
import com.mock.dao.UserDao;
import com.mock.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Descripton TODO
 * @Author liutianlong
 * @Date 2022/4/28 Version 1.0
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Autowired
    private LogService logService;

    @Override
    public User queryUser(String userName) {
        logService.saveLog();
        return userDao.queryUser(userName);
    }
}
